<template>
  <div class="info_item">
    <el-card>
      <div class="title_view">
        <img src="../../assets/image/tit_icon01.png" alt="" />
        <span >系统功能</span>
        <div style="width: 80%;text-align: center;">
          <span style="color:white;font-weight: 500;">服务师生，服务教研</span>
        </div>
      </div>
      <div v-for="(parItem, parIndex) in list" :key="parIndex">
        <div class="line_view" v-if="parIndex != 0"></div>
        <div class="tag_view">
          <div
            v-for="(item, index) in parItem.list"
            :key="index"
            @click="clickButtonAction(item)"
          >
            <el-image :src="item.icon"></el-image>
            <span
              >{{ item.name }}<br v-if="item.cont" /><span v-if="item.cont">{{
                item.cont
              }}</span></span
            >
          </div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  components: {},
  props: {
    list: Array,
  },
  computed: {},
  methods: {
    clickButtonAction(item) {
      this.$emit("systemAction", { item: item });
    },
  },
};
</script>

<style lang="scss" scoped>
.info_item {
  width: 88.875rem;
  height: 36.375rem;
  margin-left: 0.94rem;
}
.el-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.title_view {
  height: 3rem;
  width: 100%;
  background: linear-gradient(
    35deg,
    rgb(183, 221, 250) 0%,
    rgb(122, 190, 246) 100%
  );
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  img {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 1rem;
    margin-right: 0;
  }
  span {
    font-size: 1.25rem;
    color: blueviolet;
    font-weight: 600;
    margin-left: 1rem;
  }
}
.tag_view {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  padding-right: 1.5rem;
  div {
    width: 17rem;
    height: 5rem;
    border: 0.06rem solid #ccc;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: 3rem;
    margin-bottom: 2rem;
    cursor: pointer;
    .el-image {
      border: none;
      width: 2.3rem;
      height: 2.3rem;
      margin-top: 2rem;
      margin-left: 0;
    }
    span {
      //font-size: 1.25rem;
      color: #333;
      font-weight: 500;
      margin-left: 0.625rem;
      text-align: center;
    }
  }
}
.line_view {
  height: 0.06rem;
  background-color: #ddd;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
</style>
